<extend name="Public/base"/>
	
<block name="nav">
<h4>安装进度</h4>
	<hr>
	<div class="progress">
		<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
		安装数据库
		</div>
	</div>
		
	<div class="bs-example">
	    <ol style="margin-bottom: 5px;" class="breadcrumb">
	      	<li> <a href="javascript:;">协议</a></li>
	      	<li><a href="javascript:;">检测</a></li>
	      	<li class="active">配置</li>
	      	<li><a href="javascript:;"><eq name="Think.session.update" value="1">升级<else/>安装</eq></a></li>
	      	<li><a href="javascript:;">完成</a></li>
	    </ol>
	</div>
</block>

<block name="btn">
    <a class="btn btn-success btn-large" href="<{:U('Install/step1')}>">上一步</a>
    <button id="submit" type="button" class="btn btn-primary btn-large" onclick="$('form').submit();return false;">下一步</button>
</block>

<block name="content">
    <?php
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_HOST_M', '127.0.0.1');
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_PORT', '3306');
    ?>
    <form action="__SELF__" method="post" target="_self" class="form-horizontal">
        <div class="create-database">
            <h3>数据库连接信息</h3>

            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">连接类型</label>
            	<div class="col-sm-3">
	                <select name="db[]" class="form-control">
						<option selected ='selected'>mysql</option>               
	                </select>                	
               	</div>
            </div>
            
            
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">服务器</label>
                <div class="col-sm-4">
                	<input type="text" name="db[]" class="form-control" value="<defined name='SAE_MYSQL_HOST_M'><{$Think.const.SAE_MYSQL_HOST_M}><else/>127.0.0.1</defined>">          	
                </div>
                <span>数据库服务器IP，一般为127.0.0.1</span>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">数据库名</label>
                <div class="col-sm-4">
                	<input type="text" name="db[]" class="form-control" value="<defined name='SAE_MYSQL_DB'><{$Think.const.SAE_MYSQL_DB}></defined>">
            	</div>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">数据库用户名</label>
                <div class="col-sm-4">
                	<input type="text" name="db[]" class="form-control" value="<defined name='SAE_MYSQL_USER'><{$Think.const.SAE_MYSQL_USER}></defined>">
            	</div>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">数据库密码</label>
                <div class="col-sm-4">
                	<input type="password" name="db[]" class="form-control" value="<defined name='SAE_MYSQL_PASS'><{$Think.const.SAE_MYSQL_PASS}></defined>">
            	</div>
            </div>

            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">数据库端口</label>
                <div class="col-sm-3">
                	<input type="text" name="db[]" class="form-control" value="<defined name='SAE_MYSQL_PORT'>{$Think.const.SAE_MYSQL_PORT}<else/>3306</defined>">                	
                </div>
                <span>数据库服务连接端口，一般为3306</span>
            </div>

            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">数据表前缀</label>
                <div class="col-sm-3">
                	<input type="text" name="db[]" class="form-control" value="jy_">               	
                </div>
                <span>同一个数据库运行多个系统时请修改为不同的前缀</span>
            </div>
        </div>

        <div class="create-database">
            <h3>创始人帐号信息</h3>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-3">
                	<input type="text" name="admin[]" class="form-control" value="Administrator">
               	</div>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-3">
                	<input type="password" name="admin[]" class="form-control" value="">
               	</div>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-3">
                	<input type="password" name="admin[]" class="form-control" value="">
                </div>
            </div>
            <div class="form-group form-group-sm">
            	<label for="formGroupInputSmall" class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-3">
                	<input type="text" name="admin[]" class="form-control" value="">
                </div>
                <span>请填写正确的邮箱便于收取提醒邮件</span>
            </div>
        </div>
    </form>
</block>
